package com.weixin.app;

import io.appium.java_client.android.AndroidDriver;

public class PartmentPage extends BasePage{

    public PartmentPage(AndroidDriver driver) {
        super(driver);
    }

    //获取部门名称
    public Partmentfils getPartment() throws Exception {
        Partmentfils partmentfils = new Partmentfils();
        partmentfils.setPartment(find("xpath",
                "//*[@resource-id='com.tencent.wework:id/fyu']/android.widget.TextView[1]").getText());
        return partmentfils;
    }
}
